package com.beiding.workordersystem.orders.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.List;

@Data
public class ProductType {

    private String id;

    //父节点id
    private String pid;

    //层级,根节点层级为0
    private Integer hierarchy;

    //名称
    private String name;

    //所有的子节点
    @TableField(exist = false)
    private List<ProductType> children;

}
